package com.ruoyan.service;

import com.ruoyan.dao.UserMapper;
import com.ruoyan.pojo.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Package: com.ruoyan.service
 * @ClassName: UserServiceImpl
 * @Author: ruoyan1998
 * @CreateTime: 2021/5/9 13:21
 * @Description:
 */
@Service
public class UserServiceImpl implements UserService
{
    @Resource
    private UserMapper userMapper;

    public void setUserMapper(UserMapper userMapper)
    {
        this.userMapper = userMapper;
    }


    public int signin(User user)
    {
        return userMapper.signin(user);
    }

    public User login(String userName, String password)
    {
        return userMapper.login(userName,password);
    }
}
